package com.hiraeth.modules.monitor.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hiraeth.common.utils.PageParams;
import com.hiraeth.modules.monitor.entity.MonitorDashboard;

public interface MonitorDashboardService extends IService<MonitorDashboard> {

    /**
     * 分页查询
     *
     * @param pageParams
     * @return
     */
    IPage<MonitorDashboard> findListPage(PageParams<MonitorDashboard> pageParams);

    /**
     * 添加仪表盘
     * @param dashboard
     * @return
     */
    MonitorDashboard addDashboard(MonitorDashboard dashboard);

    /**
     * 更新仪表盘
     * @param dashboard
     * @return
     */
    MonitorDashboard updateDashboard(MonitorDashboard dashboard);

    /**
     * 删除仪表盘
     * @param dashboardId
     */
    void removeDashboard(Long dashboardId);
}